package ch4;

import java.util.Scanner;

public class ZuoYe12 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入语文成绩：");
        double yw = input.nextDouble();
        System.out.println("请输入数学成绩：");
        double sx = input.nextDouble();
        System.out.println("请输入英语成绩：");
        double yy = input.nextDouble();
        double zf = yw + sx + yy, pj = (yw + sx + yy) / 3;
        if (yw >= 60 && sx >= 60 && yy >= 60) {
            if (pj > 80) {
                System.out.println("获得一等奖学金1500元");
            } else if (pj > 75) {
                System.out.println("获得二等奖学金1000元");
            }
        } else if ((pj > 70)) {
            System.out.println("获得三等奖学金500元");
        }
    }
}
